encodeRedirectURI

abstract suspend fun encodeRedirectURI(error: AuthorizationRequestError, errorDispatchDetails: ErrorDispatchDetails, encryptionParameters: EncryptionParameters?): DispatchOutcome.RedirectURI(source)

Method forms a suitable authorization response, based on the error and the provided errorDispatchDetails, and then encodes this response to a URI. To this URI, the wallet (caller) must redirect its authorization response

This method is applicable when errorDispatchDetails contains a ErrorDispatchDetails.responseMode which is one of ResponseMode.Query, ResponseMode.QueryJwt, ResponseMode.Fragment or ResponseMode.FragmentJwt

Return

a URI pointing to the verifier to which the wallet(caller) must redirect its response. This URI carries the authorization response

Parameters

errorDispatchDetails

Details on how to dispatch the error